package com.zs.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.util.Date;

/**
 * @BelongsProject: springbootdemo
 * @BelongsPackage: com.zs.entity
 * @Author:DuoErGun
 * @CreateTime: 2019-07-17 18:43
 * @Emil: 381889220@qq.com
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentInfo {
    /**
     * 学生便哈奥
     */
    private String sid;
    /**
     *学生名字
     */
    private String sname;
    /**
     *学生性别
     */
    private String ssex;
    /**
     *学生年龄
     */
    private Integer sage;
    /**
     *学生手机号
     */
    private String sphone;
    /**
     *学生进班时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date stime;
    /**
     *把安吉编号
     */
    private String sclassid;
    /**
     * 班级信息
     */
    private ClassInfo classInfo;

}
